<ion-header>
	<ion-toolbar>
		<ion-title>随机事件设置</ion-title>
		<ion-buttons slot="end">
			<ion-button color="primary" (click)="close()">
				<ion-icon slot="start" name="close"></ion-icon>
				<ion-label>关闭</ion-label>
			</ion-button>
		</ion-buttons>
	</ion-toolbar>
</ion-header>

<ion-content>
	<ion-list>
		<ion-item>
			<ion-label>随机数最小值</ion-label>
			<ion-input type="number" [(ngModel)]="setting.min"></ion-input>
		</ion-item>
		<ion-item>
			<ion-label>随机数最大值</ion-label>
			<ion-input type="number" [(ngModel)]="setting.max"></ion-input>
		</ion-item>
		<ion-item>
			<ion-label>是否显示时间</ion-label>
			<ion-toggle [(ngModel)]="setting.time" slot="end"></ion-toggle>
		</ion-item>
		<ion-item>
			<ion-label>分组 ( {{ setting.group }} )</ion-label>
			<ion-range [(ngModel)]="setting.group" min="2" max="100" pin="true" color="secondary">
				<ion-label slot="start">2</ion-label>
				<ion-label slot="end">100</ion-label>
			</ion-range>
		</ion-item>
		<ion-item>
			<ion-label>次数 ( {{ setting.num }} )</ion-label>
			<ion-range [(ngModel)]="setting.num" min="1" max="100" pin="true" color="secondary">
				<ion-label slot="start">1</ion-label>
				<ion-label slot="end">100</ion-label>
			</ion-range>
		</ion-item>
	</ion-list>
</ion-content>
